module.exports={
    devServer: {
        disableHostCheck: true,
        port: 8080,
        proxy: {
            '/api': {
                target: 'http://192.168.31.175:8097',//代理的地址
                changeOrigin: true,//是否跨域
                ws: false, // 需要websocket 开启
                pathRewrite: {
                    '^/api': '/'
                }
            }
        }
    }
}
